data class Email(val emailSettings: NavigationSpec.Email.EmailSettings, val delegate: MFMailComposeViewControllerDelegateProtocol? = null, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec
Presents a MFMailComposeViewController
Parameters
emailSettings
EmailSettings for composing the email
delegate
Optional MFMailComposeViewControllerDelegateProtocol added to the MFMailComposeViewController
animated
Specifies whether the transition should be animated
completion
Optional function called when presentation is completed
Constructors
Link copied to clipboard
constructor(emailSettings: NavigationSpec.Email.EmailSettings, delegate: MFMailComposeViewControllerDelegateProtocol? = null, animated: Boolean = false, completion: () -> Unit? = null)
Types
Link copied to clipboard
An attachment added to the email
Link copied to clipboard
data class EmailSettings(val type: NavigationSpec.Email.Type = Type.Plain, val to: List<String> = emptyList(), val cc: List<String> = emptyList(), val bcc: List<String> = emptyList(), val subject: String? = null, val body: String? = null, val attachments: List<NavigationSpec.Email.Attachment> = emptyList())
Settings for composing the email